<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>26.使⽤margin⾃动撑满空间技巧</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    nav {
      margin: 0 auto;
      width: 1200px;
      height: 60px;
      background: #f3f3f3;
      box-shadow:  0 0 0 rgba(0,0,0,.3);
      display: flex;
    }
    ul {
      list-style: none;
      display: flex;
      align-items: center;
    }

    ul:nth-child(1) {
      display: flex;
      margin-right: auto;
    }
    ul:nth-child(1)>li{
      margin: 0 10px;
    }
    ul:nth-child(2)>li{
      background: purple;
      border-radius: 50%;
      margin: 0 10px;
      height: 50px;
      width: 50px;
    }
  </style>
</head>

<body>
  <nav>
    <ul>
      <li>首页</li>
      <li>视频教程</li>
      <li>晚8点直播</li>
    </ul>
    <ul>
      <li></li>
    </ul>
  </nav>

</body>

</html>